<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-CPP: TAssetInfo类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-CPP
   </div>
   <div id="projectbrief">AWTK CPP API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_t_asset_info-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">TAssetInfo类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3d0020e2502683fe0ab81a1f4668e104"><td class="memItemLeft" align="right" valign="top"><a id="a3d0020e2502683fe0ab81a1f4668e104"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TAssetInfo</b> (asset_info_t *nativeObj)</td></tr>
<tr class="separator:a3d0020e2502683fe0ab81a1f4668e104"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae59c6435e0fc0bdc85ebd0f6202e088"><td class="memItemLeft" align="right" valign="top"><a id="aae59c6435e0fc0bdc85ebd0f6202e088"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>TAssetInfo</b> (const asset_info_t *nativeObj)</td></tr>
<tr class="separator:aae59c6435e0fc0bdc85ebd0f6202e088"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a61e78e5ca168f3b803bb75b7b6e9ac3b"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#a61e78e5ca168f3b803bb75b7b6e9ac3b">GetType</a> ()</td></tr>
<tr class="separator:a61e78e5ca168f3b803bb75b7b6e9ac3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53157e6c868a842c42a9fdf5d37dab5f"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#a53157e6c868a842c42a9fdf5d37dab5f">GetName</a> ()</td></tr>
<tr class="separator:a53157e6c868a842c42a9fdf5d37dab5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add85468ea6382850781a700f399fe86a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#add85468ea6382850781a700f399fe86a">IsInRom</a> ()</td></tr>
<tr class="separator:add85468ea6382850781a700f399fe86a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2428753392d5b24999f60b7f95ea994c"><td class="memItemLeft" align="right" valign="top">ret_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#a2428753392d5b24999f60b7f95ea994c">SetIsInRom</a> (bool is_in_rom)</td></tr>
<tr class="separator:a2428753392d5b24999f60b7f95ea994c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c4db6c9943b9efd683cc723af6c32b6"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#a7c4db6c9943b9efd683cc723af6c32b6">GetType</a> () const</td></tr>
<tr class="separator:a7c4db6c9943b9efd683cc723af6c32b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accedaab423a9ae4adb98728d78ddfbb9"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#accedaab423a9ae4adb98728d78ddfbb9">GetSubtype</a> () const</td></tr>
<tr class="separator:accedaab423a9ae4adb98728d78ddfbb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbd5af6987db47e03c127ce399a5131f"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#adbd5af6987db47e03c127ce399a5131f">GetFlags</a> () const</td></tr>
<tr class="separator:adbd5af6987db47e03c127ce399a5131f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad34495a7f8f25a83518e37da717068cd"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#ad34495a7f8f25a83518e37da717068cd">GetSize</a> () const</td></tr>
<tr class="separator:ad34495a7f8f25a83518e37da717068cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bf45655657ebd313a841355b8feed66"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_t_asset_info.html#a9bf45655657ebd313a841355b8feed66">GetRefcount</a> () const</td></tr>
<tr class="separator:a9bf45655657ebd313a841355b8feed66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:aa3b178b204c68956f33c39afcc72c4d8"><td class="memItemLeft" align="right" valign="top"><a id="aa3b178b204c68956f33c39afcc72c4d8"></a>
static <a class="el" href="class_t_asset_info.html">TAssetInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (asset_info_t *nativeObj)</td></tr>
<tr class="separator:aa3b178b204c68956f33c39afcc72c4d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a745fe520ffb081d101ea420a7c551613"><td class="memItemLeft" align="right" valign="top"><a id="a745fe520ffb081d101ea420a7c551613"></a>
static <a class="el" href="class_t_asset_info.html">TAssetInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><b>Cast</b> (const asset_info_t *nativeObj)</td></tr>
<tr class="separator:a745fe520ffb081d101ea420a7c551613"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a045aa9d8d31b03e96c59f45e3ebded26"><td class="memItemLeft" align="right" valign="top"><a id="a045aa9d8d31b03e96c59f45e3ebded26"></a>
asset_info_t *&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a045aa9d8d31b03e96c59f45e3ebded26"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>单个资源的描述信息。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="adbd5af6987db47e03c127ce399a5131f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbd5af6987db47e03c127ce399a5131f">&#9670;&nbsp;</a></span>GetFlags()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t TAssetInfo::GetFlags </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>资源标志。 </p>

</div>
</div>
<a id="a53157e6c868a842c42a9fdf5d37dab5f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53157e6c868a842c42a9fdf5d37dab5f">&#9670;&nbsp;</a></span>GetName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * TAssetInfo::GetName </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取名称。</p>
<dl class="section return"><dt>返回</dt><dd>返回名称。 </dd></dl>

</div>
</div>
<a id="a9bf45655657ebd313a841355b8feed66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bf45655657ebd313a841355b8feed66">&#9670;&nbsp;</a></span>GetRefcount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TAssetInfo::GetRefcount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>引用计数。 is_in_rom == FALSE时才有效。 </p>

</div>
</div>
<a id="ad34495a7f8f25a83518e37da717068cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad34495a7f8f25a83518e37da717068cd">&#9670;&nbsp;</a></span>GetSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t TAssetInfo::GetSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>大小。 </p>

</div>
</div>
<a id="accedaab423a9ae4adb98728d78ddfbb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accedaab423a9ae4adb98728d78ddfbb9">&#9670;&nbsp;</a></span>GetSubtype()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t TAssetInfo::GetSubtype </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>子类型。 </p>

</div>
</div>
<a id="a61e78e5ca168f3b803bb75b7b6e9ac3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a61e78e5ca168f3b803bb75b7b6e9ac3b">&#9670;&nbsp;</a></span>GetType() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TAssetInfo::GetType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取类型。</p>
<dl class="section return"><dt>返回</dt><dd>返回类型。 </dd></dl>

</div>
</div>
<a id="a7c4db6c9943b9efd683cc723af6c32b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c4db6c9943b9efd683cc723af6c32b6">&#9670;&nbsp;</a></span>GetType() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t TAssetInfo::GetType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>类型。 </p>

</div>
</div>
<a id="add85468ea6382850781a700f399fe86a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add85468ea6382850781a700f399fe86a">&#9670;&nbsp;</a></span>IsInRom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool TAssetInfo::IsInRom </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>资源是否在ROM中。</p>
<dl class="section return"><dt>返回</dt><dd>返回 TRUE 为在 ROM 中，返回 FALSE 则不在。 </dd></dl>

</div>
</div>
<a id="a2428753392d5b24999f60b7f95ea994c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2428753392d5b24999f60b7f95ea994c">&#9670;&nbsp;</a></span>SetIsInRom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ret_t TAssetInfo::SetIsInRom </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>is_in_rom</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置资源是否在ROM中的标记位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">is_in_rom</td><td>资源是否在ROM中。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/<a class="el" href="awtk__cpp_8hpp_source.html">awtk_cpp.hpp</a></li>
<li>output/awtk_cpp.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
